package interfaz;

import org.uqbar.arena.actions.MessageSend;
import org.uqbar.arena.widgets.Button;
import org.uqbar.arena.widgets.Label;
import org.uqbar.arena.widgets.Panel;
import org.uqbar.arena.windows.Dialog;
import org.uqbar.arena.windows.WindowOwner;

import tablero.Personaje;

public class LlamaraShengLong extends Dialog<Personaje> {
	Personaje p;

	public LlamaraShengLong(WindowOwner owner, Personaje model) {
		super(owner, model);
		p = model;
	}

	@Override
	protected void executeTask() {
		p.llamarAShengLong();
		
	}

	@Override
	protected void addActions(Panel actions) {
		new Button(actions)
			.setCaption("Aceptar")
			.onClick(new MessageSend(this, ACCEPT))
			.setAsDefault()
			.disableOnError();
		
	}
	
	@Override
	protected void createMainTemplate(Panel mainPanel) {
		this.setTitle(p.getNombre() + " HA LLAMADO A SHENG LONG!!!!!!!");
		super.createMainTemplate(mainPanel);
	}

	@Override
	protected void createFormPanel(Panel mainPanel) {
	}

}
